package service.util;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * Created by aceyin on 15/7/2.
 */
public class PasswordUtil {
    public static String encrypt(String pwd) {
        if (pwd == null) {
            return "";
        }
        return DigestUtils.md5Hex(pwd).toLowerCase();
    }
}
